#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0, b = 0;
	while (scanf("%d %d", &a, &b) != EOF)
	{
		if(a<b)
		{
			int t = a; a = b; b = t;
		}
		int i = 0;
		int x = a;
		for (i = x; i!=0; i++)
			if (i % a == 0 && i % b == 0)
			{
				printf("%d\n", i);
				break;
			}
	}
	return 0;
}